import {createStore} from 'vuex'
import user from './modules/user'

type storetype={
    name:string,
    age:number,
    email:string
}
const store =createStore<storetype>({
    state:{
        name:'张三',
        age:24,
        email:'xxx' 
    },
    modules:{
        // 键名就是模块名 键值就是模块对象
        user
    }
})

export default store